The working hypothesis of depression is that is, in part, caused by a serotonin deficiency in certain brain regions. SSRIs are first-line drugs used to treat depression and they, basically, increase the amount of serotonin available in these brain regions.
Now from that, I could see how it would be possible for a brain lesion to act in the same way. For instance, a mass damaging neurons that may inhibit serotonin release or malignant transformation resulting paraneoplastic/excessive release of serotonin would function in the same way as an SSRI. I am sure other biochemical or structural changes caused by tumors could also influence mood disorders one way or another, but I am only speculating.