Dialog: for back-compat, make titleBar optional.
Fixes #18253, and dojox/image/Lightbox.

(cherry picked from commit 7fb5165e195a0c3698bd6cde7d93cfa4d5ea5066)
Fix resizing of Dialog with dijitDialogPaneActionBar.

When the dijitDialogPaneActionBar is a sibling of this.containerNode, like in ConfirmDialog,
then resizing the Dialog smaller than its content will keep the OK/Cancel buttons visible,
and add the scrollbar just to this.containerNode.

Fixes #18316.

(cherry picked from commit 75beb510e39890698644704370158968ef14402f)