This is a simple Alt+tab (Cmd+tab) issue
I have found that this happens when I’ve missed the “purchase this software” dialogue and have not dismissed it.
Alt-tab (or Cmd-tab on Mac) to check if there is a dialog window waiting for a response and dismiss it. This will resolve the issue.
As others have mentioned restarting Sublime will also resolve this issue because it is essentially dismissing the dialogue.