Depends if the window is well sealed. Older drafty houses you want to avoid windows. Also Direct sunlight through the window can cause over heating. With that said I have enclosures and a rack near a window in the spare bedroom I keep my animals in. (it is a well sealed window with good blinds).