The wickedness of Sodom and its neighbors was a misguided overreaction to Noah’s Flood. The generation of the Flood had been wiped out chiefly because they practiced and condoned robbery – the forceful and unjust taking of one person’s property by another. The residents of Sodom, aware of this, declared private property rights absolute, outlawing charity and hospitality as unjust uses of another person’s possessions.
In their zeal, the people of Sodom did not realize that this opposite extreme was just as destructive as condoning robbery. So, since the world cannot fulfill its purpose of being G‑d’s true home if we human beings cannot get along with each other, Sodom and its neighbors had to be eliminated, just like the generation of the Flood. Nonetheless, since their intentions, however warped, stemmed from a desire to do the right thing, we are told that these cities will be restored in the Messianic Era.1
We can learn from this that our challenge is to find proper balance rather than live a life of extremes.2


I do not understand at all the interpretation of the author. Would someone please explain what it is I am supposed to get out of these interpretations?
To live a life of balance, one needs to have and guard property rights, yet at the same time, one needs to be charitable and help those in need as well.
Simcha Bart for Chabad.org
What does it constitute to be "charitable"? What if someone refuses your gifts? You are Kosher, I am not, I offer, you refuse, I am humiliated, you feel that you have done the right thing... Where does G-d stand?