Ignition SDK - API to open a window on click event

Hi,

While designing screens in the designer, when I want to setup navigation , I use system.nav.openWindow(“SomeWindowName”) on a mouse Click action.

If I want to do similar action through Ignition SDK API in a custom module, which is the API to use ?
I tried using VisionClientInterace.getNavUtil.openWindow(String name), however nothing happens.

Is this the correct API to use?

Thanks.