Are you using NGUI? There's a known problem with UIStretch that causes this behaviour.
If not, are your using any other third party assets? Generally we find the problem in a third party asset misbehaving and pulling focus from other Editor Windows...