Lecture 11 in my Psychological Significance of the Biblical Stories series.
Often interpreted as an injunction against homosexuality (particularly by those simultaneously claiming identity as Christians and opposed to that orientation), the stories of the angels who visit Abraham, bless him, and then rain destruction on Sodom and Gomorrah are more truly a warning against mistreatment of the stranger and impulsive, dysregulated, sybaritic conduct.
Abraham opens his heart and hearth to the stranger. The denizens of Lot’s soon-to-be lost cities threaten them with violent rape. God exacts a terrible retribution. The warning is clear.