Get AWT or Swing Window from SimpleApplication

Hello. Is there a simple method to get the Java AWT or Swing window from SimpleApplication?
The background is that I want to write automatic tests and for that I need at least the Java AWT or Swing window of the JMonkeyEngine canvas. Specifically right now I need the position and size of the window to place the mouse cursor in my test. Since the window have borders and title bar I can’t simple use the scene size.

I guess it’s somewhere in protected JmeContext context of LegacyApplication. But I really can’t find it.

Does this help:
https://wiki.jmonkeyengine.org/jme3/advanced/swing_canvas.html
?