Effective gating and tunable magnetic proximity effects in two-dimensional heterostructures