Thanks to @etaionshrd on Reddit I found this Terminal command:
defaults write com.apple.dock slow-motion-allowed -bool YES && killall Dock
If it doesn't work, try copy-pasting it. There is no auto-correct in Terminal and spelling counts. Works for me macOS 10.13.2 High Sierra.