Restrict macOS from automatically enabling "Keep in Dock" after rearranging Dock icon

This is the expected behaviour and has remained the same since the days of Mac OS X 10.10. There is no way to prevent it from happening.

It still stands true, as of this writing, with the current latest version being macOS Mojave 10.14.5.