How to use Macbook pro in clamshell mode with lid open on macos mojave?
You can fool the Mac into thinking that the lid is closed by placing a very weak magnet on the sensor that is normally triggered when you close the lid.

The exact position of that sensor varies, but it should be somewhere at the very edge of the laptop, just behind the trackpad.

Of course you must be extremely careful bringing magnets near computers, but if you use one that is weak enough and small enough, you should be able to reproduce the effect of the magnet that is in the display portion of your laptop.