To solve this extra window bug in Yosemite?
I filled a bug report to Apple to solve this buffer corruption problem, made here. The only workaround is to log out of the Mac and then log back in. That typically clears the graphics frame buffers. If not, a reboot will recover from the failure, but not prevent it from happening again.