Core: use Window_ member for getting window index