It is likely considered a worse tablet by many, but Samsung Dex [1] actually works quite well and using something like UserLAnd [2] you can have a full Linux environment (without root). I'm still experimenting a bit with the latter, but seeing that Android is still Linux under the hood I'm expecting it to work out in the end. I plan to run code-server [3] on it which would provide a full IDE.
[1]: https://www.samsung.com/us/explore/dex/