Avoid add views into window directly