Mac OS has a Dock preference to enable/disable "Minimize windows into application icon", you can try below steps:
1. Open System Preferences
2. Select Dock icon from System Preferences
3. Uncheck the "Minimize windows into application icon" check box on Dock perferences
Not sure if above method solves your problem