User
@Noya already tried to recreate Warcraft 3 gameplay in Dota 2. I think he ended up giving up.
Here is the source code of his project.
Just warning you that several good Dota 2 Custom Game projects died. Most of these were I think for Dota 2 updates break many of these Custom Game, requiring the developers of these Custom Game to fix the new bugs that came out of the update.
The
source code from Custom Game Castle Fight maybe may be useful for you. Since the Custom Game uses some skills and mechanics equal to Warcraft 3.