function bind_window_size(type, set) {
	listen(window, ['resize'], () => without_reactive_context(() => set(window[type])));
}
@param {'innerWidth' | 'innerHeight' | 'outerWidth' | 'outerHeight'} type
@param {(size: number) => void} set