Homosexuality is usually a problem transferred to a foetus, when a pregnant woman has anal sex and enjoys it.
It happens during the parent's intercourse or pregnancy.
It follows an abnormal sexual act between the parents. To be more clear, anal sex.
[Saint Porphyrios] says that when the woman likes that, a desire is born, and then the desire is passed on to the child.