LPS-49362 Listener created when window is openned

We actually already have a method for this (in this very file): `Liferay.Util.getPortletId()`. You can pass a namespaced string to it and it will give you the portlet id.