This is quite similar to my latest project Weylus [1]. You still have to create the virtual output yourself but then you do not only get a second monitor but all the touch events are handled properly and you can even use a stylus/pen with pressure sensitivity. Additionally it also works on iOS/iPadOS.