You don't really have to use the PiP thing to make this happen, I've noticed it happening after minimizing the app while chatbox and keyboard is active, not sure if it happens when they aren't active. It also might be happening when switching between apps.
Samsung Galaxy A9
Android 9.0
Bookmarks