You need to find another way up to the second floor first.
The closet is a great way to get up the second floor.
Did you notice the pegs in the closet?
Try pulling one. The closet is an elevator.