Some years ago I saw a magazine ad showing a retractable hmm... stand thing to hold a monitor, keyboard, and mouse above a bed.
It was able to be angled for comfort, etc. So, you'd be able to put a desktop somewhere (above? below?) and use it from bed.
No idea if they're still sold, but it wouldn't be too surprising. :)