The implementation of ToolbarButtonWithDialog expects a constructor function for now, not the object returned from calling a constructor function.