Pff... sunlight on equipment, temp diffs... small problems.
Try humidity so high in air coming in that any rust-able surface rusts in days... the joys of living at approx 150m from the sea. Then try to have both electronics and metal fabrication and computers in a room that needs ventilation during summer (the view is of an empty wall of the building in front, so... not many upsides either).
One learns to love aluminum and stainless.
Living in this island, 3 streets away from the sea, it's the same problem. Rust in everything. Cheap or not cheap. That and the sunlight ruins everything that's metal, plastic and untreated wood. You have to keep them well stored. I keep my scope in a bag, for example. I also keep those silica gel bags all over my toolboxes and storage places to slow down rust, but I'm not sure how effective it is.
Yes, avoid the window. Specially if you live in an area with a high UV index. It will ruin the plastics, make them brittle. If you forget you left the window open you're in big trouble.
I can't really think of an electronics equipment that is well suited for being next to a window. And I'm really thinking about it. Unless it's all metal, don't bother.
Generally, do not store anything close to Windows.