Code responsible for tracking unused intermediate geometry calls ObjectTools::ForceDeleteObjects which in turn forcefully closes all types of editors that are open (including ones that are not even related). Intermediate geometry use is already reference counted, so it is safe to call ObjectTools::DeleteSingleObject on each piece of intermediate geometry instead. This should solve the issue of editor windows being closed.
Code responsible for tracking unused intermediate geometry calls ObjectTools::ForceDeleteObjects which in turn forcefully closes all types of editors that are open (including ones that are not even related). Intermediate geometry use is already reference counted, so it is safe to call ObjectTools::DeleteSingleObject on each piece of intermediate geometry instead. This should solve the issue of editor windows being closed.