As you say, probably a Tibetan text; most of what is in the Tibetan texts originated from India, so it's possible it has an Indian provenance.
However, it does not come from early sutta/Vinaya, where there is no bias against homosexuality at all.