Though not the most common choice of layout for a room, placing the bed in front of a window is a tactic that can sometimes open up the space and make better use of the available square footage.
In urban apartments, the thought of obscuring a window is nearly sacrilegious because city dwellers pay a premium to have sunlight and fresh air in their homes. When done thoughtfully, placing a bed in front of a window allows a designer to choose shades and drapes that give plenty of access to the outdoors and also function as decorative artwork above a headboard. Add nightstands and table lamps, and you've got a stunning feature wall that glows from within.
Images: 1. Turquoise; 2. Decorpad; 3. Decorpad; 4. Decorpad; 5. House Beautiful.