flags = OVERLAY;
That is for Panels. The Engine Window, you don`t can set the black transparent.