There is a great deal of two-way traffic passing in both directions through windows and the objective is to maximize the positive gains while minimizing the negative losses.
The best way to achieve this is to invest in well-constructed windows that take advantage of high-performance technology, and to have them professionally installed to maximize their thermal performance.