example a: my little charlie's room.
photo credit: kate renyi ker photography
but there are so many more examples :)
i think it can actually be better to put a bed (or crib!) in front of a window because it gives the bed a frame. it's also so much more inviting to walk into a room where the bed is facing you instead of away from you.