From what I recall there is some sort of free passage law ( federal ? ) that allows a person legal in their home state to travel to from through a restricted state. Does that apply to NY?
The Firearms Owners Protection Act, a.k.a. FOPA. Yes it applies to New York (although many NY LEOs don't seem to think so), but the premise of the FOPA is that you are allowed to transport (not carry) a firearm through
intervening states where you might not otherwise be legal IF
you are legal in the state where the journey begins AND in the state where the journey ends. Since you may not legally possess a handgun in NY unless you are a resident (with some very strict exceptions such as participating in a sanctioned competition), the FOPA does not allow you to take your handgun to NY for a visit.
Don't do it. Don't even think about it.