Relatively speaking, this method is the most reasonable. Just don't use a shower on the wall between the bathroom and the bed. If the shower is hung on this wall, it is best to make this wall waterproof to at least 1.8 meters, otherwise moisture will easily invade the bedroom slowly. It is recommended to buy a bed with a high backrest.
The head of the bed cannot be by the window or by the door, so this is the only way. Moreover, there is a wall between the bathroom and the bathroom so there will be no evil spirits. The only thing to pay attention to is the moisture problem.
Hope it helps.