Why record one window
Nothing else on your screen can appear in the video.
That protects private information and removes the need to crop afterwards.
Built-in options
QuickTime and Shift + Command + 5 record the screen or a rectangle.
A rectangle includes anything that moves over it.
Record the window itself
In ReleaseVu choose Window, hover over the window you want and click.
Only that window is recorded.
Tips
Resize the window to a clean ratio such as 16:9 before you start.
See the aspect ratio calculator.