I planted a cherry tree in front of our living room window that faces west. I have a couch against that wall. In spring and summer it's full of leaves but not so many that I can't see through it, but it blocks most of the heat from the sun. In the fall and winter the leaves fall away, allowing all the sunlight in. And it's pretty seeing all the blossoms and cherries in spring.
Window faces an uncovered courtyard. No room for a tree.