There actually was an Android based device that did this
years ago. 2011/2012, I think; you could connect the phone to an external device that gave you a mouse, keyboard, and screen. The only problem was that the external device was something like $300 on top of the phone.
Edit: https://www.amazon.com/AT-Laptop-Dock-Motorola-ATRIX/dp/B004... - Motorola Atrix Lapdock