This is because when our attention is diverted, we use up valuable cognitive resources reorienting ourselves, leaving less mental energy for completing our work.
For depression, best evidence supports the use of either cognitive behavioral or interpersonal therapy in the behavioral realm and antidepressants in the realm of pharmacology.