The key idea here is to have a ball on both ends of the device and a linking arm structure with adjustable friction mechanism. One of the balls must be fixed to the ground and the other to the laptop. The idea has been inspired from Manfrotto's Magic Arm camera positioning jig.
But instead of the complicated inner mechanism used in the Magic Arm, i devised a simpler design (Manfrotto, you are welcome), inspired by the usual prongs or pliers.

The tightening of the knob in the center can result in increase in the frictions on the 3 moving parts, the ball at the bottom, the hinge in the center as well as the ball on the top holding the laptop. The challenge is - will the clamping be good enough to hold a heavy 3-4 kg laptop in the cantilever form we desire? There is only one way to know - to make it.
Here's an interesting video to show that the bigger the ball, the more the holding force can be achieved.
See my failed prototype #1 update in the project logs.