How do i get rid of this red dotted rectangle?
The red checkered box is a render region.
It's used to render only parts of your screen.
Clear it using Ctrl+Alt+B
Or through View &gt; View Regions

Read: Render Border&#39;s related check boxes - How do they work?