After many tests, solutions using commands and complicated scripts, etc, the best and simple solution that I found was using Conky widgets (yes, amazing); I found this solution accidentally while installing a widget I saw that all maximized windows are fixed to keep the widget in desktop visible.
The important part of the widget is "own_window_type panel" to create a window like a panel in your screen.
Then my solution was create a empty and transparent widget for each position of screen when I need a margin(left, top, bottom, right)
Left widget example:
minimum_size 10 1080
All widgets are similar only changing size and the position in the screen.
This very simple solution works like a charm :)