defaults write com.apple.Dock showhidden -bool true
You need to kill Dock to see any change.
Interestingly, any Java application that was using -Xdock:icon to get a dock icon will come back with the wrong icon; some kind of variant of the Terminal icon. Turning magnification on shows that the word in tiny green text reads "exec".
How very l33t.