Use drawer slides; mount the drawer on the wall; attach the shell to the slides, so it pulls out. Shifty Desk / Hallway Stand by Daniel Schofield This is such a great storage idea! It can be a shelf and a drawer.
The table is like a solid cube. Until it opens It has a flat service when it is closed or not, which is a characteristic of a table. Either way it is a table. it could be a side table when it looks like a cube or dinner for two when you pull it apart.