A nan was gunned down on her own doorstep after her sons stole from drug dealers, a court has heard.