I have seen this feature that allows you to open a new tab in recent apps with a different activity
This feature is in the app called reddit sync where you can open different sub-reddit in different windows
The feature guide explains the feature as follows: "Long press to open sub in a new window. This opens the sub "on top of" whatever you were going through. You don't lose your place in the frontpage. A full width swipe from left to right will take away the new window."
Can someone explain me how exactly the feature can be implemented in code (Java) I am attaching screenshot of the app/feature that it works on