Add syntax sugar for MPIDependency

Closes #20797.