In the Barry attack one of the key motives is to play Nf3-e5 and h2-h4-h5. The bishop is much better placed on e2 than on d3, as the bishop on e2 supports the pawn push.
Also, on d3 the bishop is staring at a black pawn wall (g6-h7) which limits its scope. Last reason why not to play Bd3 is that white doesn't have to worry about an eventual e7-e5-e4, attacking both Knight and Bishop.
I a play the gruenfeld as black and is wondering why white puts the bishop on e2 instead of d3.d3 looks like a more active square for the bishop. Also,why does white play h3 in many barry attack positions.It looks like Bg4 is impossible for black anyway because of the night on d7.
Any imformation would be extremley helpful. Thanks