When I use the Set Render Region via the search menu, I instantly get the setting where I can set the region with mouseclicks, but when I run the following code
import bpy
#override context, only to run command from text editor:
override_context = bpy.context.copy()
area = [area for area in bpy.context.screen.areas if area.type == "VIEW_3D"][0]
override_context['window'] = bpy.context.window
override_context['screen'] = bpy.context.screen
override_context['area'] = area
override_context['region'] = area.regions[-1]
override_context['scene'] = bpy.context.scene
override_context['space_data'] = area.spaces.active
bpy.ops.view3d.render_border(override_context, wait_for_input=True)
nothing happens. I dont want to hardcode the borders, I want it to work exactly like when I use the Set Render Region command from the search menu.