См. определение в файле UIScriptedWindow.c строка 74
Перекрестные ссылки UIManager::CloseWindow(), GetGame(), CGame::GetUIManager() и m_Id.