I think many people assume that Sodom and Gomorrah were destroyed because of their sexual immortality, and this may at least be part of the reason. However, I recently read Ezekiel and in Ezekiel 16:49-50
49 Now this was the sin of your sister Sodom: She and her daughters were arrogant, overfed and unconcerned; they did not help the poor and needy. 50 They were haughty and did detestable things before me. Therefore I did away with them as you have seen.
It seems that Ezekiel is turning the traditional interpretation on its head, although there is certainly room for argument in the phrase "did detestable things before me".
Is there any kind of doctrinal consensus or majority view on why exactly Sodom and Gomorrah was destroyed?