This is an interesting question and one I’ve thought a lot about over the years.
I work in a very alpha male dominated industry. And it’s amazing for me to watch how the males (in general) interact with the females and I do see stark differences in their behaviours.
What I’ve seen is that the males tend to professionally respect a female who makes it very clear that she is not there - and does not care - about being pretty, sexually attractive, being accepted on the basis of her looks, attitude or attractiveness as a female or being put in the role of a female-hanger-on to stroke the male egos.
Unfortunately, this does mean dressing and behaving in certain ways. The ones that get respect tend to dress professionally and do not wear lots of makeup/nails/jewellery - as doing this does sort of suggest that they see their value (in the workplace) as being based on how they look. They often look very beautiful and fashionable but, in my opinion, signals that they think your looks can be used to form an opinion of you.
They also do not tolerate “banter”, do not smile and giggle when a man comments on their appearance or relationship status. They do not talk about their relationships or going out clubbing/drinking or any of their amusing exploits. And any comments from the men are shut down quickly and unapologetically.
The downside to being like this is that you can be considered a prude, old-fashioned, conservative, no fun, etc etc etc. And I guess the males you work with probably won’t consider dating or having sex with you (if you consider that a negative!)