One of the underlying problem appears to be the fact that men are required to pursue women in the first place. The unequal standards and expectations placed on men is itself a cause of "unwanted attention and harassment" for women.

Note that I'm not excusing this behavior. I don't think it justifies men being assholes. But that shouldn't prevent us from discussing this problem.

Seinfeld has a famous joke about cat calling where he basically says "this is the best that men have come up with so that's why they do it" (YouTube clip).

Fix this systemic, underlying problem -- the fact that men have to work and struggle to find love and companionship in an unequal playing field -- and then "catcalling and harassment" will stop being a thing.