Creating view using window