Actually: yes. There is a law for that, it is called the privacy of your own room. If you do it on your balcony, it wouldn't be right, but as long as it is a closed room, it is private.If you lived on the first floor of an apartment and didn't purchase and perform the work of hanging curtains, could you claim your privacy was being invaded if someone stood on the public sidewalk and took a picture of you picking your nose and posting it on the internet?
Just because it's possible doesn't mean it's right. Thanks for your understanding.