CMS-3352 Instantiate ContextWindow only once
InsertablesPanel: moved duplicate code to reusable internal method