Use a laptop as a 2nd display on Linux using FreeRDP
There's a slightly different approach with a similar outcome: sharing the keyboard and mouse between two machines.Software used to be called Synergy, but that went commercial, so there's a fork called barrier. 
https://github.com/debauchee/barrier