No matter what, applications should not automatically assume that they should take the center stage and pop to the forefront. This does two things – it takes the cursor focus away from where the user was typing and it creates the need to shift focus back to the place it used to be. This is bad behavior. If you write GUI applications please, please, please don’t allow your application to do this.
Jeff Atwood said the same thing: Please Don’t Steal My Focus