Give window focus after bringing it to front by setting its index to 1?

FYI: