Do your window frames have holes at the bottom of them? You might think this is a design flaw, but there's a very good reason ...
For a minor number of ants on your window sill or door frames, use distilled white vinegar ... Spray all around places where ants can enter your home: windows, baseboards, doorways ...