Some models can even become relatively competent Hackintosh, though macOS lacks proper pen drivers of course.
Samsung has Dex, which is a desktop interface for Android tablets (and phones hooked up to a dock). For a while they experimented with offering a full Ubuntu desktop, but I believe they've stopped that experiment.
Honestly, Apple seems to be the only tablet manufacturer that still tries its hardest to push professional users back to laptops. With the virtualisation support in Android 13+, I wonder how long it'll take before someone brings out the first macOS-on-Samsung-Galaxy app; various people have already run Windows 11 as a proof of concept on Pixel devices so who knows how long it'll take.
I'm sure at some point someone at apple has built a prototype and did extensive testing, I'd love to know why was that shut down. And whether it was a business related issue, or a tech/UX related issue.
Adapting either one to work with the other would only make it worse.
You can already run some iOS apps in MacOS. I'd like a single computer where I can switch between mobile / pencil usage and desktop keyboard / mouse usage.
It works pretty well for things designed for keyboard and pointing device -- one of my main uses is to remote in to a Windows machine.
The main problems with this setup aren't inherent... while the track pad is quite good, the keyboard is passable at best (needs function keys and for the frequently used keys to stop semi-dying).
Pretty quickly you start to naturally switch between touching the screen, typing on the keyboard or using the trackpad, depending on what you're doing and what software you're using.
Now my wife laughs at me when I'm using a regular MacBook and try to swipe or tap the screen.