From the perspective of geomantic omen, the end of the bed radiates out of the window, which has a bad meaning.
From the perspective of practical science, when the end of the bed is facing the window, you will sleep in the bed and be awakened by the light outside the window (whether it is the sunshine after dawn, the outdoor light and moonlight at night, and the light of thunderstorm and lightning, many curtains can't cover this strong light), which will make people uneasy.
Solution:
If there is other lighting in the room, you can use the window sealing method. If there is only this light source in the bedroom, you can't seal the window. You can choose to adjust the bed. If the end of the bed cannot be adjusted, it can only be covered with multi-layer (usually double-layer) thick curtains.
This question ends here. You got it? If you have more questions, you can ask the local feng shui master.