Painting tools get stuck momentarily after starting the program or dragging and dropping content from another window

After dragging and dropping content from a different window (either another photoshop file or a web browser window for example) every tool that works by "painting" (such as the brush, pencil, quick selection tool etc.) gets stuck in its own position and the only possible action that can be performed with it is to paint directly where it is or create straight brush strokes. This lasts for a few seconds (sometimes even more than one minute) and then the tool works as expected.

This issue also happens right after starting the program for the first time in the day.