disable_selection

omni.kit.viewport.utility.disable_selection(viewport_or_window, disable_click: bool = True)

Disable selection rect and possible the single click selection on a Viewport or ViewportWindow. Returns an object that resets selection when it goes out of scope.