So, a dummy hdmi plug will do the job?
No need for dummy monitors, to disable the forced automatic sleeping behaviour when closing the lid just run
sudo pmset -a disablesleep 1
Dummy might not do it. You could need a full fake display adapter - cutting the end off an HDMI won't do the bidirectional stuff monitors do these days, I believe.
Amphetamine.
No need for dummy monitors, to disable the forced automatic sleeping behaviour when closing the lid just run