Change control to viewport with c#

I have a button that selects objects, but the selection is lost after activating the viewport with the left button of the mouse.
Is it possible to change the control from the button to the viewport in rhinocommon? I noticed that you don’t loose the selection if you right click on the viewport, but that is a bit awkward, and not all users will realize of that.
Thanks,
Victor

To activate a viewport without losing selection you are supposed to click on the widget in the topleft

image