Are the primitives not already there?[0]
I don't see why we cannot build an app that when connected to an external monitor switches to a "Desktop Environment". Maybe, even a hacked version of UTM[1] that exposes a fully functional OS on the monitor.
[0] https://developer.apple.com/documentation/uikit/presenting-c...