While the solution above will work, its dependent on a network connection between the two devices, and there can be latency because of that. I would not use it as a primary display.
Now the HDMI on your tablet is an output, not an input, there is no way to connect your PC to your tablet and use it as a screen in that way.