A lot of people are choosing to build a fake wall that the bed is up against and put the closet behind it. The window stays and the wall can be removed if the next person is not a fan. Here are some Google images....
https://www.google.com/search?q=closet+behind+the+bed&rlz=1C1CHZL_enUS746US746&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwiB9az66NPYAhWH3YMKHa2jCH0QsAQIiAE&biw=1600&bih=794
Q
link to closets behind bed
Q