private void OnGUI() { if (null == window) { Closed(); ShowWindow(); return; } windowsPosition = window.position; _behaviorManager.OnGUI(); Repaint(); }