Reposition Spotlight search bar to its default location in macOS Mojave
Starting with OS X El Capitan 10.11, it became possible to freely drag and move around Spotlight search bar.

To reposition it to its original location, simply tap and hold on the Spotlight search button in the Menu bar (shown towards right) for a couple seconds. This should do the trick!