I used the same strategy from my vertical stockpiles (Compact vertical stockpiles) to create some bunk beds.
In this case, I stacked up a few dining tables on the floor and then placed a bed up on top of them. This was kind of tricky because it’s really hard to remove something out from something else. I managed to remove all the tables by marking them all to be removed all at the same time and putting a bunch of ladders around them so they were all accessible.
Even so, two of my workers still got stuck. They just stood there frozen. I was fortunate that those two people had professions so I could manually assign them tasks which got them unstuck.
In progress shot. Now that I think about it again, it might be possible to do this one with a single stack of tables or maybe even fences.