Fixed calling sequence for Window to include view type.