How to add a field into the system config programatically? (duplicate)

It should work for new fields too.
Just see its implementation: