Implement onSubWindowActive.