The bed should not be placed near the window. From the perspective of geomantic omen, the window is a place where air enters, so the bedside is close to the window and easy to flush. Because people lying in bed can't see out of the window, they are prone to insecurity, causing mental stress and affecting their health.
The best place to put the bed is that you can see everything outside the door on the bed, but it is not advisable to turn your back on the door.