Terminal command below will " Reset the Dock "
killall Dock
If above does not work >>
1 - Restart in Safe Mode. This will perform a Disk Repair, clear cache files and only load Apple Software, extensions and fonts. The boot up will be slow and can take some time - Normal.
2 - Safe Mode will also eliminate Third Party Software, extensions and drivers from loading. It will only load the Minimum amount of Core Apple Processes to allow the the computer to function at a reduced Level of Performance
3 - Does the issue present in this mode ?
Still not work >>
4 - If not - there could be something in the main User Account playing up. To further isolate this - Set up users, guests, and groups on Mac. Then log out of the Main User account and log into the dummy account and test again if the issue persists.
5 - If the issue is present in the dummy account - then, this appears to be a System Wide issue on the computer.
Still no resolve, post back for an additional suggestion.