Dialog: modified _createOverlay to use _AppendTo. Fixed #8984 Modal dialogs display behind overlay when using appendTo option