Prevent updating part of the display

Description

Hello. I need to display images on an arbitrary part of the display using non-LVGL tools. How can you prevent redrawing of an arbitrary part of the display

What MCU/Processor/Board and compiler are you using?

STM32F407

What LVGL version are you using?

8.0.2

What have you tried so far?

Dynamically change the resolution. Reducing the work area for LVGL output, but maybe there is a better way?

A simple solution is probably to filter out the appropriate areas in flush_cb and not actually flush those pixels to the display.