Why do windows switch when using measuring tool

FYI, I believe this is one of other threads @DaveR has mentioned.