Some Murphy beds combine a sofa with a wall bed. To separate your sleeping area from the rest of the flat, you could get a free-standing screen, room divider or "floating" (hanging) wall.