If you want something to be anchored to the right, with a resizable width, anchor both left and right side of the widget, but change the pivot to top-right, right, or bottom-right.
You will be able to resize its width and since the pivot is on the right, it will adjust its position by expanding toward the left.