The term may be new but the practice is referenced in the Old Testament.
Men in Sodom wanted to have sexual relations with Lot's angelic guests
( Genesis 19: 4-9)
Lot was no hero- let me make that clear.
First, Lot chose to move to Sodom for financial gain even though it was known that ungodliness was prevelent there ( Genesis 13:10-13).
Then though Lot did well to try to protect the angels, he failed to protect his own daughters- instead offered them to appease the men. ( Genesis 19: 8).
The men of Sodom were so insistant and wicked that Lot's family had to be defended by the Angels. (Genesis 19:9-11)