Doggie Doors are dangerous for small dogs like Yorkies as they cannot be out alone without fear of a large predator bird like a hawk or owl or coyote or human getting them and making off with them. Large predators birds take small dogs with far greater frequency than I knew before I joined YT! We see reports of close calls or hear stories of past horrors where a small dog was taken here all too frequently. Small dogs like Yorkies can find the tiniest 3" hole between the gate and fence post and squeeze through it and be gone in a heartbeat! Even large cats can attack them if they enter your yard and no one is watching the dog. I saw a Boxer scale our neighbor's 5' fence and jump into their backyard as easily as it could have walked in the gate the other day so even large dogs can get into your yard and attack or injure or kill your dog if it's outside alone.
Also, small Yorkies cannot readily self-regulate their body temperature as easily as other dogs and they have no protective double coat so cold or hot weather are both very difficult on them and they chill or get heat exhaustion easily so the dog should be monitored at all times when outside. Also, creepy things can come in many of those doggie doors!!!!