I can't remember what the project was called, but many years ago I remember seeing a concept for a Linux phone that also doubled as your desktop when plugged into a hub.
All Samsung Galaxy phones have a built in desktop OS called Dex. I remember plugging my monitor usb-c cable to charge my phone and being blown away when a desktop UI appeared on the monitor
DeX is very good, lot of fun to use with a lapdock. However, you need to check if the particular model of phone supports it. Usually it's the more expensive models, so Galaxy S, Galaxy Z Fold/Flip, Galaxy Tab S, and 1 single model of A series, the A90 5G.
Works on my S21U. I use it a lot because I have some weird thing where I'll get really tense typing on a touchscreen keyboard, so if I have to type long messages in android-only apps its going on the docking station.
I used to love Dex, but later they removed the support for macOS. It used to work elegantly and android to mac connection was so easy. Being able to take calls, see messages and also file transfer. :)