The young woman was very lucky this guy wasn’t more dangerous. You have to have a screw loose to act like that.
Exposing oneself is a very passive act. At this point of his idiocy/perversion, he is not dangerous. So he would be very easy to bring under control. It’s when these creeps move on to breaking and entering and/or rape that they become more dangerous and we have to respond with our personal firearms.