Move Window helper methods to a WindowHelpers trait