Wind braking of magnetars: To understand magnetars' multiwave radiation properties