Retractable bed hides in the rafters

This would totally solve my dwarf problem.

I would be interested in a standalone version suitable for a rented apartment. Perhaps fashioning a pseudo-rafter frame out of metal would work, albeit at considerable effort.