I have 3 dogs, and if I don't shut the bathroom door all the way, they will all bust in and gather around to watch me.
If they can't get the door open, they stand outside the door and whine and scratch. I'm not sure what the fascination is, but it seems to mean a lot to them. Pretty embarrassing for me, though.