initRVPanels is used to register the viewer panels.

Afterwards, the panel can be called by “viewer.panels[panel GUID]”. The panel GUID is usually the panel name, that can then be used as the panel title as well.
 

Example:
 

var obj = { GUID: "MyNewPanel", width: 400, height: 300, contenthtml:'html content'};

initRVPanels(RVViewers[0], obj);

viewer.panels['MyNewPanel'].open();