См. определение в файле Container.c строка 516
Перекрестные ссылки CanSwapOrTakeToHandsEx(), GetFocusedContainer() и Container::GetFocusedItem().