Most other lines of work don't seem to spill out as much from the office, and people in them seem to socialize more outside their field. If X and Y are married, I think P(X is in field F|Y is in field F) is generally higher when F is a tech field than when it is not.
So even if tech were 50/50 male/female, I think we'd still have more problems than other fields (although if women were equally represented and powerful, more of the complaints would be from men being hit on by women at work...).
Sometimes I think tech companies should set up some kind of internal dating or matchmaking site, and establish a rule that if an employee is interested in exploring romantic or sexual relationships with coworkers, they have to go through that site. Communication otherwise must be kept on a professional level.