First, I've yet to see any women engineers who have demonstrated they are good at their jobs make this argument. It's mostly bloggers and journalists writing these things. Women engineers who are good don't describe having problems any different from the rest of us.
As far as the actual incidents of harassment from asshole managers and socially inept coworkers, I've got the same stories too. Management is clueless in general and the profession, although respected by the public, is not generally respected by managers, executives or journalists.
Most developers employed these days are not competent, regardless of gender, man and woman alike. The few that are competent cluster in competent firms where harassment and disrespect of employees, man and woman alike, is not tolerated.
I'm a bit hyper-aware of this right now. I resigned my job last month after 6 months of abuse and harassment of engineers by non-engineering sales staff, which they viewed as hilarious pranks on worthless geeks who think they are so smart. Complaints to management were handled with suggestions to "man up", "learn to deal" and "stop being a pussy". I received over 100% salary increase in return for my willingness to quit and leave for a more sane firm.
If you are good and you are being harassed, there is high demand for people who are good. The companies that permit harassment deserve to fail. Leave and don't look back. I offer this advise because I would hate for someone to think they can't find a place where there work is appreciated and they are valued because of their gender or race. There are places out there that are sane and professional, and they are generally more profitable so you make more as well. The only thing is that you need to be competent, that is the most important thing in this field because that's your ticket to success.