I think the point Allen is making is shown by a smaller simpler example.

Import this function, use the ? on the interactive window to call it, and see that the return value is shown immediately as the dialog is displayed and while the dialog remains open.

This timing was masked in your example because the dialog was much larger and covered the interactive window.