Not just frustrating, it's a security hole. Stealing focus means a user may expect to be typing a password but find it's inputted somewhere they did not expect.