Briefly put, the thesis of this trend in scholarship is that Lot was violating the custom of Sodom (where he was himself not a citizen but only a "sojourner") by entertaining unknown guests within the city walls at night without obtaining the permission of the elders of the city. When the men of Sodom gathered around to demand that the strangers be brought out to them, "that they might know them," they meant no more than to "know" who they were, and the city was consequently destroyed not for sexual immorality but for the sin of inhospitality to strangers.
— Christianity, Social Tolerance, and Homosexuality by John Boswell (Page 93 - 94)