Just a fact: a detaching magazine is one of the easiest mechanical parts of a firearm to manufacture. Pressed metal, bent spring wire and a few seconds of welding to a template and you have a magazine. Now if it will work or not depends on materials, the accuracy of the template and the accuracy of your workmanship.
I'd be a bit more worried about the ammunition....