from PIL import Image, ImageDraw
screen_width = 2560
screen_height = 1440
img = Image.new('RGBA', (screen_width, screen_height), (0, 0, 0, 0))
draw = ImageDraw.Draw(img)
x1, y1 = 100, 100 # Левый верхний угол
x2, y2 = 300, 200 # Правый нижний угол
draw.rectangle([x1, y1, x2, y2], outline='red', width=5)