Once upon a time during studies in the 80ies I bought a used bed in some welfare shop and was offered nightstands as many as I could carry - for free. Didn't take them then, but the thought of using these nice pieces of furniture who had seen a bit in their lives ;-) never left me. After moving into a very small flat I thought I could finally put my idea to good use. I made most of it in situ (a circular saw in a two room flat is a bad thing!). I bought and changed them to fit one another. Here it is. To use space better I put it on retractable gear, fitting a little training wall behind. It fits exactly over the flat door as squelch for nasty neighbour sounds.
it is pretty straight forward: take a folding rule, a buzz saw and a jigsaw - and do it. The retractable gear is another thing. When I finish the last parts in CNC I will publish pictures. For now the lift shifts on laser cut MDF rails and I expect them to break soon. The made to measure rear wood apron took me several (ever shorter) iterations to make the desks fit. No way to get it right the first time as the old furniture isn't straight.
Interesting idea you have there.