Maybe this updated example gives more ideas, run it and while pressing the buttons check out log:
Names Default To Here(1);
nw_expr = Expr(New Window("2", << modal,
Text Box("Second")
, << Move Window(0,0)
));
nw = New Window("1", << modal,
Button Box("2",
nw_expr;
Show("Continue inside window");
);
);
Show("Continue outside window");
-Jarmo