I have worked for State, Local, and Federal agencies. In all the training I hav ever gotten, they all defined sexual harassmant as "unwanted attention of a a sexual nature" The key here is the word "unwanted"
If a woman and a man in the workplace want to send dirty emails to each other, it may well violate their rules regarding electronic media, it may well violate rules regarding appropriate use of agency time, but if they are both happy with the exchange, it cannot be sexual harassment. Now - if she sits on his lap and whispers sweet nothings into his ear, others could be offended by it and it could be a sexual harassment issue.
The other thing I have always been taught, is that for cases where the behavior is generally accepted in public social settings (like a man holding a door open for a woman or saying someone looks good) the person who is 'offended' needs to do something to indicate that they consider the behavior to be unwanted or unacceptable.
In other words an action or behavior that is commonly done, or considered benign, can be construed as sexual harassment, but the person being offended cannot let it drag on and on and on and then finally make a complaint.
Bottom line is that different behaviors are interpreted differently. I would not be offended if a woman reached out and adjusted my tie (if it were askew) other men might be. If a male said to a female co-owrker that the blouse she had on was attractive, that is probably not out of bounds ..... if he goes on to say that the reason he likes it is that it makes her chest look bigger, then I would say she will be offended (but even then - not every woman would) It might be that she noticed the same thing and that is what she likes about the blouse too.
I hear what the trainers and teachers tell us - and I a doubtful that their very own office is as free from sexual innuendo, jokes, and comments as they tell us that ours should be.
"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."
Benjamin Franklin, 1755
"Living in our society is like living in a very tall building. The rich live on the top floors. The poor live on the lowest floors. And only the cops travel to all the floors. Only the cops see it all."
Det. Ted O'Conner - Chicago P.D