Get non sketch active focused window size and position possible?

Hi. I’m super new to processing 3. is it possible to find the the size and position of an active window. by that I mean whatever window is currently the main focused and active window ? just need to know if its possible to do it before I try to learn how.

Thanks in advance

Matthew

Do you mean from all currently open windows, not only your Sketch window?

OS=windows 10?

Yeah from all currently open windows. are you asking me my operating system ? windows 10 yeah. but id like to be able to find a solution for both mac and pc.