"How goodly are your tents, O Jacob, your dwelling places, O Israel!" [Balak 24:5]
Rashi writes that Bilam was inspired by the Jewish tents "because he saw that the entrances were not opposite each other".
The arrangement of tents alludes to scholars convening together to discuss matters of Torah, each one offering his own interpretations. Then, if their "entrances" - meaning their mouths - are "opposite each other" i.e. their intention is to show that their own ideas are superior than those of the others, then woe to them and their souls!
But if their intentions are for the sake of Heaven, then they are certainly deserving that the Divine presence should rest with them.
Based on Ohr Torah of the Mezritcher Maggid