How to fix apps that look small on high DPI and high resolution displays

Today, many PCs ship with very high resolution displays even if the PC form factor is smaller for example, an Ultrabook or a tablet. Or you may have a desktop monitor with 4K resolution. At such resolutions, Windows automatically turns on DPI scaling so everything on your screen becomes larger. However, there are some third party apps, which don't render properly on high DPI screens. They look too small for the screen resolution. Let us see how to fix them if Windows 8.1 or Windows 10 does not scale them properly.