My not so practical thought:
It's not on someone to get others to act reasonably. It's on your team to not be harassers, to see beyond whatever limited images they have in their head of any group. No one is making them do anything, and work isn't anyone's private space, nor is it a public rights space. Everyone acts appropriately, everyone participates in setting the tone, and everyone adapts every time there is a change to group composition. No one gets especially catered to.
I work in tech, and for my team it's the largest ratio of women to men I've seen, in QA, management, SEs, SAs, and devs. And it's really easy.