I assumed the coordinates of P = (h,2) to get the value of DP+PM= $\sqrt { (h-2)^2 +4}+\sqrt{h^2+1}$. Then I differentiated the equation wrt to h to get: $h(\sqrt{h^2+1}) -2\sqrt{h^2+1}+ h\sqrt{h^2+8-4h}$. On equating this expression with 0, I will probably get the answer.
Is there any other~shorter method of solving this?

The easiest way is to use a reflection. Let $N$ be the symmetric of $M$ with respect to $B$:
Then $DP+PM=DP+PN\geq DN$, and the minumum for $DP+PM$ is achieved when $P=BC\cap DN$.