Prototype - back to modal by clicking off screen?

Hi everyone,
Figma newbie here, I was just wondering how the UX works for this design
(https://www.figma.com/file/v26f5Ufh6Mo9MkVBQps3LY/Spotify-figma-mobile-app?node-id=26%3A119). Example:

Start from Home → click on the Player → opens PlayerModal → click top right on 3 dots → opens PlayerSongOption

So far so good, now the question is how do you come back from PlayerSongOption; right now, if you click outside of the screen, it comes back to the previous one, so even if it was Search or Premium that would work: what is this mechanism?
Cause the “logical” way would be a path bak to each screen but then how would Figma understand which one to choose…

Thanks for your help!

Answer: managed by an interaction On Tap / Close Overlay