buildDialogForView
Called from buildDialog. Builds (but does not show) the Dialog to display a view built via ViewRegistry.
Subclasses may override completely to build their own kind of Dialog, there is no need to call super
.