Wikipedia is your friend.
When you get the stuff set up, open your data/mugen.cfg file in notepad, go under [Video Win], and change the settings:
Width to 640
Height to 480
DoubleRes to 4.
Don’t use WinMugen plus for it! It’s a closed source fighter, meaning unlike mugen you can’t just place your own characters in there.