Shame on them! As a woman who was a STEM major and has a degree in a STEM field, I didn't need anyone else to do my work for me. I was usually a straight-A student who carried her own weight on the team lab assignments.
Back to the OP - I have worked in the STEM area for 25 ± years and haven't experienced any "sexual harassment" in the workplace. Then again, I tend not to get offended, have a sense of humor and don't tend to make a federal case out of stupid behavior. Choosing to not play the victim, I try to solve matters on my own and if that doesn't work, I will consult others for help.
The ones that made a habit out of it usually left the program.
The ones that staid become good friends. We were a pretty tight group at Iowa State for the size of the program.