Thanks for doing and sharing this!
It has been really helpful to finally have virtual displays that respond to CGDisplay methods when developing Lunar (https://lunar.fyi)
It also helped in unearthing some bugs apparently. [0]
[0] https://github.com/MonitorControl/MonitorControl/issues/752#...