added util for facilitating launching JavaFX windows from the Prolog side