Chart Demo: Fix for failure to detect already opened popup windows

Clicking on the FPS, color chart or any other buttons meant to make a popup
window appear was failing to detect and re-focus an already opened popup.