I'm pretty sure if you're going down this route nearly all penalties would be disallowed.
If I was a ref and I saw someone encroaching on the box during a pen I would make them take it again until it didn't break the rules. I'd also give a penalty straight away for any shirt-pulling in the box.

