Can DPAK be used in a through hole pcb if desperate?
When doing hand assembly you have a lot of options that aren't practical in production.

you could surface-mount it on that matrix board - if it gets too hot solder thick copper wires into the holes under the the drain pad to act as a heatsink. solder conducts heat better than any affordable non-metallic interface material.
or you could plan ahead and lay down some copper sheet under the drain pad when mounting it and extend the other tabs to reach the circuit board.

A DPAK is basically the same as a TO220 with the leads bent and bits cut off, you could solder pins onto it (that middle tab connects to the drain pad just like in a TO220) and use it through-hole, and optionally solder or clamp a heatsink to the drain pad.