Would it make sense to buy an Android tablet with their "Magic Keyboard" and use it as a Linux device? What limitations would I run into? Let's say I want to create apps using Android Studio.

Why make things needlessly overcomplicated? Just get a Microsoft surface and install Linux on that.

https://github.com/linux-surface/linux-surface