Yeah as long as you closely monitor the temps, it shouldn't be an issue. The concern is sunlight coming through the window and causing the enclosure to overheat. If that isn't happening, then having the tank by the window shouldn't be an issue in itself.