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