Potential theory for manifolds with boundary and applications to controlled mean curvature graphs