Implement Window Stack in Application (C++)