Merge "Check if WindowToken is visible before adding dim."