I remember doing this with my Windows 10 phone back in 2015 (with a dock). Kinda slow and clunky, but mostly worked for a lot of the basic stuff I was doing with it. I think Motorolla had a similar thing?

https://en.m.wikipedia.org/wiki/Microsoft_Display_Dock