Closed #2417: Reconstruction of EGLView

Reconstruction of EGLView
Please don't merge
this branch will follow the main branch to update
avail size is the window size, the problem with this logic is that we should use the real outer container size as the frame size, not the window's size. The window size will not be the correct thing to use in some system as well, because it contains the address bar size sometimes.