While it's not a strict no-no, it's best to avoid placing a wardrobe directly in front of a window to allow natural light into the room.