OS X give focus to a window after showing
Found solution myself. In system settings on the Mission Control tab the second option of the top group must be checked. I don't know exactly how it is in English, it shall be something like 'Switch to space with application windows when switching to an application' or something like that.

I used this as a tip, it says about the third checkbox, but in my case the second one has solved my trouble.