Some camera apps on Android, like the modded Google Camera, use Android's [Camera2 API](https://developer.android.com/reference/android/hardware/camera2/package-summary) but it's disabled on Xiaomi devices by default (with the exception of the Mi 5s). If Camera2 is disabled, such apps (like GCam) don't work and crash on launch. Thankfully, TWRP lets you modify build.prop in ADB mode and thus enable Camera2.
After successfully enabling Camera2, you can install a Google Camera port from [here](https://www.celsoazevedo.com/files/android/google-camera/). Be advised, however, that different versions work on different models and different ROMs so there's no universal option, but you can find recommendations for a variety of devices [here](https://www.xda-developers.com/google-camera-port-hub/).