The term "Sexual Harassment", - with the word "Sex" followed by another word "Harass", - sounds awfully serious.
But, like all other liberal creation (social welfare, for example) "Sexual Harassment" itself has been abused.
Fortunately no conservative constructs have ever been abused... couldn't resist - back to the topic
Nowadays you can be slapped with a "Sexual Harassment" lawsuit if you comment on the way someone dress herself or "itself".
In some cases, it was much worse before. In the 1980's, at the place where I worked, we had our first gender harassment seminars.
It quickly turned surreal. Your example of how the woman dresses was spot-on. The gender harassment rep told us that it was very dangerous to compliment a woman regarding any physical matter. That telling her "Those earrings are nice" was okay, but saying you look great in those earrings was skirting the edges of harassment.
Then when a man asked what the definition of sexual harassment was, she said "Sexual harassment is whatever a woman says it is". You could have heard the proverbial pin drop.
This draconian interpretation started a years long mess, where the men actively avoided all the women. Male supervisors would not engage 1 on 1 with female staff - there would always be at least one other person. Men quit talking to or socializing with women.
And the women absolutely hated it. Some of the ladies I worked with were dirty minded and flirtacious enough to make me blush some times, and the men were avoiding them like the plague.
One of the machinists had a nice photo of a young lady in a cheerleader outfit on his toolbox. A woman took offense to it, and he was told to take it down. It was his daughter.
The pathetic part was this estrangement only alienated normal guys. The men who were actually harassing women still did all the same things, blocking doorways so the woman had to brush up against them, "accidentally" touching them in the places you might expect, they just kept on keepin' on.
Fortunately, calmer, more rational heads saw what had been created, and modified the rules. Instead of treating all men as rapists who just hadn't been caught yet, they focused on the guys - and women who were the real problem.
In the end, it did help, although a lot of the older guys were pretty set in their ways, and never did socilize much with the female staff.
In fact, I can be charged for "Sexual Harassment" right now, because of the term "itself" that I've used to describe people whom I do not know how to describe (they are not male, nor female).
I brought up the question one time, if a man avoids all contact with women in the workplace - except for the minimum to get work done - in order to not be accused of harassment, and the women know he avoids them because of that, is his avoidance sexual harassment?