I've been in the tech industry for 18 years... worked with hundreds of different women over that time. Not once have I ever felt the need to "defend myself against accusations like this." Why? Because it's pretty easy to avoid being a condescending sexist asshole, when you stop behaving like every woman is put here for the sole purpose of your sexual gratification.
That's great, I've seen men's careers destroyed because they refused the advances of a women. This includes them claiming: rape, assault, sexual harassment, stalking, peeping and several other things. Of course, as a guy you're pretty much 100% guilty, even when it isn't true. Then you're just a "guy who got off." At the end of the day there is no defense, it's game over. Even if you are innocent, and have been maliciously libeled against and even if you win the libel case, you're still screwed.