The developer hub page documenting the function Plugin:CreateDockWidgetPluginGui doesn’t make mention of the specific instance it returns in the summary of its sole return value, which is supposed to be the DockWidgetPluginGui class
The developer hub page documenting the Plugin:CreateDockWidgetPluginGui()
function at the time of making this post: