You can actually make something very similar using corn starch and water. I did this when I was in junior high.
Mix cornstarch with water (mostly cornstarch) and then press on it with a finger or pencil. If you go real slow, the object will penetrate the corn starch. If you push very quickly with force, the cornstarch binds up and doesn't let the object penetrate.
Pretty neat actually