public setContent(content as Widget) as Void:
Replaces the hosted content widget while keeping the pane and dock button.
This is useful for transient tools, such as terminals, where the shell process can exit and the next pane activation should create a fresh widget without registering a new dock entry.
pane.setContent(TerminalView())