As others have suggested, Samsung DeX does this. I was forced to use it for a while when my laptop was broken. My older Galaxy S8 required buying a DeX Station to make it work, but that includes some USB ports that let me plug in external hard drives and even my Focusrite Scarlett audio interface for connecting my studio speakers. I used Bluetooth keyboard and mouse, but it also worked with USB.
For simple HTML editing I ended up using an app called Quoda, the closest I could find to Panic's Coda with an integrated editor and FTP:
DeX isn't something I've used long term, partly because I can't use it in a cafe (there's no laptop DeX form factor), and mostly because much of my work requires Windows software. But I was still very impressed at how much I could get done. For some people it would easily be all they need.
For simple HTML editing I ended up using an app called Quoda, the closest I could find to Panic's Coda with an integrated editor and FTP:
https://play.google.com/store/apps/details?id=com.henrythomp...
DeX isn't something I've used long term, partly because I can't use it in a cafe (there's no laptop DeX form factor), and mostly because much of my work requires Windows software. But I was still very impressed at how much I could get done. For some people it would easily be all they need.