Am I seeing this?
Are you saying that if she didn't want to hear inappropriate comments, she shouldn't have dressed that way?
If she wore a bikini to work, is it really fair to expect every guy to not say something? Now, that "something" should be closer to "you should change your outfit" than "I'd hit that", but still, the responsibility for the dress and generally accepted code of conduct falls on the woman in that case.
I don't see this stance as sexist because, as others have noted, we expect similar conduct from men.
How is it judged that a man's pants are too tight to be professional, or a woman's dress is too short, and what are the reasons? The reasons are sexual, and I might be wrong in this, but I would guess the line exists where people of either gender would begin commenting.
I think you might not be fully aware of the extent of body-related comments that women get. I know women with breasts of such a size that they ALWAYS get comments, regardless of what they're wearing.
We can, and I do. There are very different showing-chest expectations from us, we can even show our nipples in non-work public.