Get Polyscope node window size

Is there a way to programmatically get the Installation node window size in pixel (height and width)?
Moreover, is there a way to get the Program node window size for both the normal and enlarged mode?

I’m not sure if is a Java related question or an HTML one.

Thank you,
Matteo Timossi @recognitionrobotics