def set_show_viewport_size_on_resize(show: bool) -> dict:
    """Paints viewport size upon main frame resize.

    Parameters
    ----------
    show: bool
            Whether to paint size or not.
    """
    return {"method": "Overlay.setShowViewportSizeOnResize", "params": {"show": show}}