When you’re at home, you are in a private space.
If someone takes your photo from outside, this is known as voyeurism and is punishable by law.