Resolution (in images) is measured in pixels, and tells you how many pixels an image has. For example, an image with a resolution of 1920 * 1080 pixels has 1920 pixels per row, and 1080 pixels per column, for a total of 2 073 600 pixels.
Pixels do not have a physical size. They're simply points in (virtual) space with a position and a color. If you had to give them a size, they'd be infinitely small.
However, reality does have sizes, so when you need to display pixels in reality (e.g. using a screen), you need differently colored lamps that shine according to the pixel's information. You obviously can't build an infinite amount of lamps, nor can you make them infinitely small.
The same applies to when you're trying to convert a real image into pixels (e.g. using a camera). You need a bunch of sensors that can sense light intensity and color, but you obviously can't build an infinite amount of those, nor can you make them infinitely small.
Thus, each "real" pixel has a size. For cameras, the size doesn't really matter. Bigger pixels simply make your camera bigger (and heavier), but don't really affect the images you take. For screens, the size does matter a lot, however. And not just screens. Pixel size is also very important when printing; the bigger the ink dots you make, the less information you can squeeze on a sheet of paper of certain size. This results in images that aren't as sharp as if your printer could produce smaller ink dots.
That's were the term "pixel density" comes in. It's measured either in PPI (pixels per inch) or DPI (dots per inch), though they both mean pretty much the same thing.
In computer graphics, pixel density is relevant if you want to display a certain object at a certain size, for instance a button. Making a button 48 * 48 pixels large doesn't really mean much. On a 300 DPI smartphone screen, your button would be 4 millimeters (0.16 inches) wide and high, which nobody could properly tap with their fingers. On a 96 DPI screen, however, the button would be 12.7 millimeters (0.5 inches) wide and high, which is much more easy to tap with your finger.
As far as Paint.NET is concerned, setting a pixels/inch resolution makes almost no difference. The only difference is when you look at the image dimensions in the lower right corner of the Paint.NET window, and only if you changed your view from the default "Pixels" to "Inches" or "Centimeters".
Why does it matter? Because you might want to zoom in, in order to make very precise changes. When you look at the lower right corner of the Paint.NET window, you can also see where your mouse cursor is above the image. When you're zoomed in, it might be useful to know that your mouse is 5 inches away from the left side of the image, especially if you intend your image to be used at a very specific DPI.
Another use case is if you intend your image to be printed at a specific DPI (say 300) and a specific size of paper (say A4). In this case, Paint.NET will automatically compute how many pixels your image would need to perfectly fit an A4 sheet at a 300 DPI printing resolution: 6300 * 8910 pixels.
If you suddenly chose to print that image at a higher resolution (say 600 DPI), then your image would only fit one quarter of an A4 paper instead.
Other than that, the pixels/inch resolution makes absolutely no difference. If you create a 1920 * 1080 pixel image, it will be 1920 * 1080 pixels, regardless if you chose a 300 pixels/inch resolution, or you left it at the default 96 pixels/inch. And you can still choose to print the image at 96 DPI or 300 DPI or even 600 DPI.