I mean Samsung DeX has done something similar, but Apple could make a much more powerful version, since they have a real fully-developed desktop and they have apps for both platforms that use a single code base.
They will, of course, never do this, because it would result in losing Mac sales. Though I think less than one would initially think, because a laptop is much handier on the go than carrying a separate display, keyboard, and mouse and the lapdocks or whatever they are called have much worse displays and keyboards.