I’m 6 foot 9 and I have to do this all the time. Not just with women. My regular goto move is to scuff my feet at enough distance that people can be aware of me before looming over their shoulder. But this stuff happens all over the place. In bathrooms where the stalls only come up to my chest I have to be extra careful to stay in the middle of the stall with my head down lest I be perceived as a creepy peeper.