Sticking with just the rule aspect of this I would think this isn't allowed. The opposing batter isn't allowed near the plate area due to safety concerns. Now obviously this rule was created because a pitcher got ticked off at a player who was trying to time him while on the dirt and threw at him causing significant injury. So if safety is the reason for this then why would you still be allowed to put someone there even if it's on the same team?