Yes, it is as long as it's not in public view. So cover your windows and you should be ok. Otherwise it would be the same thing as if you have sex (with yourself or someone else) in the front window in view of the public.
I would respectfully disagree with you on that. You have a reasonable expectation of privacy while in the confines of your home. Doesn't matter if you are standing in front of a window or not.