I did some further exploration here: Native window access and inset handling in Processing JAVA2D and P2D
:)