it tires to find a "free" screen edge, starting at the bottom. it then tries the top, then the left, then the right. it favors edges without panels touching them.
in the docs, though, it's probably enough to just say that it looks for an available screen edge to place it on.