This version of Unity is unsupported.

IMGUIContainer.contextType

public UIElements.ContextType contextType;

Description

ContextType of this IMGUIContrainer. Currently only supports ContextType.Editor.