window: optimized interface for const-correctness