I’d like to pitch in with my experience here. Although I never joined that lifestyle, my patterns of relationship were mostly male-oriented (and unhealthy) up to and probably including whe I started dating my wife. So I joined an ex-gay ministry and worked for years to change. I did receive some crucial insights into why I was the way I was. There may well be genetic factors in my case ( I have a sister and two male cousins who are gay), but also my upbringing, peer rejection, and a chemical anxiety disorder all contributed.
I went on to get married, but was largely disappointed with the results of my efforts to change my feelings - even though I do love my wife and thak God for her. I still suspect that a program for change that is intense and pervasive enough (I’m thinking a residential program lasting more than a year) might be successful, but the resources do not exist for that. So IMHO, most men and women with this issue who obey Jesus Christ must choose to build a chaste network of family and friends (and possibly marry), but should not feel guilty about how the feelings go and as Steve pointed out earlier, it’s mostly about LOVE, not sex, unless you’re a sex addict, which can be cured, or at lest brought into remisison.
I believe the it would be possible for the Church to become such a place of love that all the gays and prostitues in the world would happily exchange their ultimately empty lifestyles to come home to the embrace of their catholic brothers and sisters. Jesus himself suggested, no commanded(!) us to love one another and if we really took that command seriously, we’d offer to the world something more satisfying than any sin.