Never seen this with mine avoiding it.
My dragon poops in his enclosure, but only at a designated spot. A certain smooth stone and the surrounding sand is his toilet (I could make a 2 x 2 cm square in which his poop always is), and this is in a place where he never has to walk through to reach anything. It's close to the front glass. Easy for me to clean up - I scoop out the poop together with a good portion of sand (I'm lucky, as it doesn't cost me anything to replace that sand), and if necessary scrub the stone and then put it back. He only goes there for pooping, and and he isn't pooping anywhere else.
He has pooped outside once so far, on the foot mat (we have it inside of our apartment as when we had it outside, random dogs peed on it!). I guess he had chosen the foot mat as it was the closest thing to "sand and stones" he could reach: a rough surface. (The foot mat was not smelling of dog pee, as after that happened with the one outside, we bought a new one and kept it inside only.)
(How my beardie is kept: very large custom-made enclosure, naturalistic setup with wood, stones, sand (so he can get away very much from his poop), and the beardie is taken out a few times a week during evening as we're not at home during the usual working hours except for 1 - 2 days on weekends. When my beardie was younger, he only wanted to come out once each 7 - 14 days. Poop isn't smelling very much - more like compost, but far from horrible, and I'm very sensitive to all kind of smells.)