In this particular moment, that space was Roseluck's cash register. Logically, Discord should not have been able to get in there, let alone come slithering out of the drawer when she opened it. Also logically, a pony's lungs should not hold enough air to scream for as long as she did, but both of those things happened so logic really didn't come into play much.