In the US generally (probably state by state laws apply) you can be naked in your dwelling, you can sunbathe naked in your garden or poolside etc as long as it cannot be seen from outside, within reason. Now if somebody climbs up your fence or peeps between/ in your window drapes they are the one doing the crime. No, so you can't go naked on a balcony.
And don't be an idiot like this guy in Denver who happened to be a pilot on a layover.
He woke up and made a long phone call free-balling next to his rooms window.
Ended up fully exonerated and paid $300,000 as the police and hotel staff made a bunch of avoidable mistakes
https://www.denverpost.com/2019/11/11/naked-united-airlines-pilot-arrested-at-dia-settlement/