I agree with a lot of what is being said. I believe homosexuality is usually related to identity trauma in childhood. There is a spiritual battle as well of course, the devil and other fallen angels want people to be confused and follow sin.
I thought I was homosexual from 14 to 18 and 1/2 years old. I went to counseling, and I finally believed It was not a born condition. There are certainly sins that increase homosexual desire (like exploring pornography), but their are wounds that make it easier to have a desire for it.
Knowing why allowed me to heal tremendously in about half a year. I used to have homosexual feelings all of the time, but now they hardly show up, and the wall that kept me from having feelings for women is very gradually moving out of the way.
But yes, not being close to God allows one to be in homosexuality more readily.
I had to fix my terrible relationship with God, I was always asking for stuff, but not willing to give. I was living a double life, pretending I wasn't living in lust. It was after I began to fear hell, and turned to God for help, and received it, That I was able to change.