That's in some hypothetical world where the law industry is for some bizarre reason as obsessed with Sex In The City as the tech industry is obsessed with science fiction. Conversations among coworkers return to Sex and the City references with tedious regularity. The meeting rooms at your firm are called Carrie and Miranda and Samantha and... the other one. Your firm's senior partner shows you, with pride, the signed portrait of Sarah Jessica Parker that occupies pride of place in his office. I can imagine that would be pretty alienating for anyone who isn't a SatC fan.
Luckily law isn't so ridiculously obsessed with some tiny facet of pop culture.
It's not far off from working in tech and not being a nerd. Maybe even worse since nerds don't actively look down on regular people the way lawyers do.
I suspect the reason why women find the nerd culture more off putting is because being nerd is sort of bad. So thinking tech is nerdy means tech is embarrassing and undesirable. Not that they won't fit in. They don't want to fit in.
Either way, the solution is to encourage some women to do tech and they can trail blaze. Then future women can see that you don't have to be a nerd to do tech.
{law books, mahogany desks} : practice of law ~= {computer parts, tech magazines} : software development.