Personally, I'd teach her to stay like everyone else said. But I'd also teach her to turn around once she gos in or out any boundary, meaning door, gate, etc. I've done this with my dogs and it works well. You just start off with her on-leash and walk out a door (If I were you I'd train this somewhere she doesn't have the problem of running off). Stop before you reach the boundary. Most likely, she'll keep going and ignore you. Eventually she will turn around (even just the slightest bit) and you just click her for it. Eventually she'll get to where she turns around to look at you when you go though the boundary, even if she was ahead of you. I wouldn't rely on it, but it would be great for backup.