Java Code:
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.jface.window.Window;

public class DummyWindow {
  public static void main(String[] args) {
    Window window = new ApplicationWindow(null);
    window.setBlockOnOpen(true);
    int returnStatus = window.open();
  }
}