I have problems with apps that use PiP on the Mi 9 with MIU 12.6 version 21.11.10.
In particular, it is about Youtube Vanced when you want to play videos in the background.
Vanced will always use the native PiP built into the Android system.
As soon as PiP is used, Vanced no longer appears...