Can Processing use MacOS X's native Picture-in-Picture (PIP) mode?

I’m not sure how to do it and I see no references to it in the forums. Am I able to take advantage of the native PIP with Processing? Here is an example of what I’m talking about

Hi,

You can take a look at PiPifier, which is a safari extension to to PIP with HTML5 videos :

Maybe you can use it with p5.js or it can give you advices to operate between Processing and Swift (I don’t know if it’s possible…)