To me, both the sentences sounds odd because I'd think trees are usually simply outside . There's a tree outside. But if you want to say that you see something through a window glass, I'd say something like, "I see a rainbow out of my window".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.