How do you hook a woman sexually and mentally.

Let's say you're not the super handsome tall guy bad boy. What can you even do?

Met a girl who is awesome. But she's stuck on a guy she met last year. They clicked. He fucked her and she can't get him out of her head even though she knows he's a bad guy for her.

So how do they do it? What is it that they do? When I spot the typical douche or bad guy at the bar. I just see clumsiness and rudeness. (which if I tried would get me rejected)

How does it work? How can someone who we all know is logically bad and makes you feel bad. But still have women yern for them? Like If I'm attracted to a type of women that makes me feel bad in the long run. I wouldn't think twice before blocking and ignoring.

Can somebody explain?