Hi @sarg,
You might try to p/invoke SetFocus, passing it RhinoApp.MainWindowHandle.
RhinoApp.MainWindowHandle
– Dale