Added virtual functions to set window opacity